let nums = [0, 4, 5, 0, 3, 6]
var containsDuplicate = function (nums) {
    if (nums.length === 0) {
        return false
    }
    let obj = {}
    for (let i = 0; i < nums.length; i++) {
        if (obj.hasOwnProperty(nums[i])) {
            return true
        } else {
            obj[nums[i]] = nums[i]
        }
    }
    return false
};
console.log(containsDuplicate(nums));
